Package-level declarations

Contains helper UI & Logic components such as the apps Top Bar and Navigation Drawer

Types

Link copied to clipboard
data class NavDrawerUiState(val isLoggedIn: Boolean = false)

Represents the UI state for the navigation drawer.

Link copied to clipboard
class NavigationViewModel @Inject constructor(userRepository: UserRepository) : ViewModel

ViewModel responsible for managing the navigation drawer UI state, specifically tracking the user's login state, and providing it to the UI layer.

Functions

Link copied to clipboard
fun AnalyticsTopAppBar(openDrawer: () -> Unit)
Link copied to clipboard
fun AppModalDrawer(drawerState: DrawerState, currentRoute: Any, navigationActions: Navigation, coroutineScope: CoroutineScope = rememberCoroutineScope(), content: @Composable () -> Unit)

Composable that displays a modal drawer for navigation.

Link copied to clipboard
fun ChatbotTopAppBar(openDrawer: () -> Unit, onNavigateToChatList: () -> Unit)

Composable function for the top app bar on the chatbot screen.

Link copied to clipboard
fun ChatListTopAppBar(openDrawer: () -> Unit, onNavigateToChatbot: () -> Unit)

Composable function for the top app bar on the chat list screen.

Link copied to clipboard
fun ChatLogTopAppBar(openDrawer: () -> Unit, onNavigateBack: () -> Unit)
Link copied to clipboard

Creates a custom shape for the navigation drawer.

Link copied to clipboard
fun DefaultTopAppBar(openDrawer: () -> Unit)

Composable function that displays the top app bar for the home screen.

Link copied to clipboard
fun JournalingTopAppBar(openDrawer: () -> Unit)
Link copied to clipboard
fun MoodEvaluationTopAppBar(openDrawer: () -> Unit)